<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <div class="header">
        <table width="1000" >
            <tr>
                <th width="65%" scope="col" style="font-family: Arial, Tahoma, Verdana, Helvetica, sans-serif; font-size: 32px;">
                    <font color="818181">ONLINE</font>
                    <font color="019fc1">TV</font>
                </th>
                <th width="35%" scope="col" align="right" valign="top"> 
            <c:if test="#{user.isAuthenticated() == 0}">
                <div class="register">
                    <a href="./register.xhtml">Register</a>         
                </div>
                <div class="login">
                    <a href="./login.xhtml">Login</a> 
                </div>
            </c:if>
            <c:if test="#{user.isAuthenticated() == 1}">
                <h:outputText value="Hi, " style="color: white" /> 
                <h:outputText value="ADMIN" style="color: white"
                              rendered="#{user.isUserAdmin()}" />
                <h:outputText value="#{user.getUserLogin()}" style="color: white"
                              rendered="#{user.isSimpleUser()}" />
                <br />
                <h:form>
                    <h:commandLink action="#{user.logout()}" value="Logout" style="color: white" rendered="#{user.isAuthenticated() == 1}"/>
                </h:form>
            </c:if> 
            </th>
            </tr>
        </table>
    </div> 
</ui:composition>
